//
//  PrefsViewController.h
//  FuelLog
//
//  Created by Pure Mass Communications on 10/18/08.
//  Copyright 2008 . All rights reserved.
//
//  Placed under GPL v2 with the kind permission of Pure Mass Communications
//
//  Modified to make compile under SDK 3.1 by Olaf Greck in May 2010
//
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#import <UIKit/UIKit.h>
#import "FlipsideViewController.h" 

@interface PrefsViewController : UIViewController { //<FlipsideViewControllerDelegate> {
	IBOutlet UIScrollView * scrollView;
	UIBarButtonItem * doneButton;
	
	IBOutlet GradientButton *mpgButton;
	IBOutlet GradientButton *ukButton;
	IBOutlet GradientButton *kplButton;
	IBOutlet GradientButton *lpkButton;
	IBOutlet GradientButton *lp10kButton;
	IBOutlet GradientButton *dpfButton;
	
	IBOutlet GradientButton *odometer0Button;
	IBOutlet GradientButton *odometer1Button;
	
	IBOutlet GradientButton *fuel2Button;
	IBOutlet GradientButton *fuel3Button;
	
	IBOutlet GradientButton *cost2Button;
	IBOutlet GradientButton *cost3Button;
//	IBOutlet GradientButton *infoButton;
//	IBOutlet UILabel *versionLabel;
	
	int units;
	int distanceDigits;
	int volumeDigits;
	int costDigits;
}

@property (nonatomic, retain) IBOutlet UIScrollView * scrollView;
@property (nonatomic, retain) 	UIBarButtonItem * doneButton;

//@property (nonatomic, retain) IBOutlet GradientButton *infoButton; 
//@property (nonatomic, retain) IBOutlet UILabel *versionLabel; 

@property (nonatomic, retain) IBOutlet GradientButton *mpgButton;
@property (nonatomic, retain) IBOutlet GradientButton *ukButton;
@property (nonatomic, retain) IBOutlet GradientButton *kplButton;
@property (nonatomic, retain) IBOutlet GradientButton *lpkButton;
@property (nonatomic, retain) IBOutlet GradientButton *lp10kButton;
@property (nonatomic, retain) IBOutlet GradientButton *dpfButton;

@property (nonatomic, retain) IBOutlet GradientButton *odometer0Button;
@property (nonatomic, retain) IBOutlet GradientButton *odometer1Button;

@property (nonatomic, retain) IBOutlet GradientButton *fuel2Button;
@property (nonatomic, retain) IBOutlet GradientButton *fuel3Button;

@property (nonatomic, retain) IBOutlet GradientButton *cost2Button;
@property (nonatomic, retain) IBOutlet GradientButton *cost3Button;

//- (IBAction)showInfo:(id)sender; 
- (IBAction)done:(id)sender;
- (IBAction)cancel:(id)sender;

- (IBAction)mpgClick:(id)sender;
- (IBAction)ukClick:(id)sender;
- (IBAction)kplClick:(id)sender;
- (IBAction)lpkClick:(id)sender;
- (IBAction)lp10kClick:(id)sender;
- (IBAction)dpfClick:(id)sender;

- (IBAction)odometer0Click:(id)sender;
- (IBAction)odometer1Click:(id)sender;

- (IBAction)fuel2Click:(id)sender;
- (IBAction)fuel3Click:(id)sender;

- (IBAction)cost2Click:(id)sender;
- (IBAction)cost3Click:(id)sender;

-(void)presetButtonColors; 
@end
